home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / usr / include / linux / kdev_t.h < prev    next >
C/C++ Source or Header  |  2008-10-24  |  298b  |  12 lines

  1. #ifndef _LINUX_KDEV_T_H
  2. #define _LINUX_KDEV_T_H
  3.  
  4. /*
  5. Some programs want their definitions of MAJOR and MINOR and MKDEV
  6. from the kernel sources. These must be the externally visible ones.
  7. */
  8. #define MAJOR(dev)    ((dev)>>8)
  9. #define MINOR(dev)    ((dev) & 0xff)
  10. #define MKDEV(ma,mi)    ((ma)<<8 | (mi))
  11. #endif
  12.